package com.xinqi.modules.sys.config.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.sys.config.factory.SysConfigFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：yyzhen
 * @Package：com.xinqi.modules.sys.config
 * @Project：com.xinqi.-Cloud-Plus
 * @name：SysConfigClient
 * @Date：2023/6/15 20:04
 * @Filename：SysConfigClient
 */
@FeignClient(contextId = "sysConfigClient", value = ServiceNameConstants.XQ_SYS, fallbackFactory = SysConfigFallbackFactory.class)
public interface SysConfigClient {

    @GetMapping("/inner/config/configKey/{configKey}")
    R<String> getConfigKey(@PathVariable("configKey") String configKey);

}
